/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.evl.tecinfo.gui;

import java.awt.Desktop;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.net.URI;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.event.HyperlinkEvent;
import javax.swing.plaf.synth.Region;

/**
 *
 * @author Jalisson
 */
public class JanelaPrincipal extends javax.swing.JFrame {

    private RegistroHorasExtras RegistrarHoras = new RegistroHorasExtras();
    private CadastroArea CadastroArea = new CadastroArea();
    private CadastroCargo CadastroCargo = new CadastroCargo();
    private CadastroFuncionarios_CA CadastroFuncionario = new CadastroFuncionarios_CA();
    private CadastroUsuario CadastroUsuario = new CadastroUsuario();
    private EditarArea EditarArea = new EditarArea();
    private EditarCargo EditarCargo = new EditarCargo();
    private EditarFuncionario EditarFunc = new EditarFuncionario();
    private EditarUsuario EditarUsuario = new EditarUsuario();
    private Relatorio Relatorio = new Relatorio();
    private LoginUsuario Login = new LoginUsuario();
    //VARIAVES DE JANELAS
    boolean janelaRgHoas = false;
    boolean janelaReltorio = false;
    boolean janelaCFunc = false;
    boolean janelaCUsuario = false;
    boolean janelaCCargo = false;
    boolean janelaCArea = false;
    boolean janelaListarFunc = false;
    boolean janelaListarUsuario = false;
    boolean janelaListarCargo = false;
    boolean janelaListarArea = false;
    boolean janelaLogin = false;
    boolean janelajMCadastraFunc = false;
    boolean janelajMListarFunc = false;
    boolean janelajMCadastraUsuario = false;
    boolean janelajMListarUsuario = false;
    boolean janelajMCadastraCargo = false;
    boolean janelajMListarCargo = false;
    boolean janelajMCadastraArea = false;
    boolean janelajMListarArea = false;

    /**
     * Creates new form JanelaPrincipal
     */
    public JanelaPrincipal() {

        setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
        addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent evt) {
                if (JOptionPane.showConfirmDialog(null, "Tem certeza que deseja sair?") == JOptionPane.YES_NO_OPTION) {
                    JanelaPrincipal.this.dispose();
                }
            }
        });


        //IMAGEM ÍCONE
        ImageIcon icone = new ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/icon64x64.png"));
        setIconImage(icone.getImage());



        /*
         ImagePanel i = new ImagePanel("C:\\Users\\Jalisson\\Documents\\NetBeansProjects\\trunk\\PSI-ControleHorasExtras\\src\\br\\com\\evl\\tecinfo\\gui\\imagens\\abamenu.jpg");
         i.setLocation(200, 100);
         i.setBounds(0, 0, 200, 600);
         i.setVisible(true);
         getContentPane().add(i);
         */
        initComponents();
        //setSize(800, 600);
        setLocation(200, 100);

        setTitle("CONTROLHOUR");



        setExtendedState(getExtendedState() | JFrame.MAXIMIZED_BOTH);
        //setContentPane(new ImagePanel("C:\\Users\\Jalisson\\Documents\\NetBeansProjects\\trunk\\PSI-ControleHorasExtras\\src\\br\\com\\evl\\tecinfo\\gui\\imagens\\background.jpg"));
        pack();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuItem5 = new javax.swing.JMenuItem();
        bLancarHoras = new javax.swing.JButton();
        bRelatorio = new javax.swing.JButton();
        bSair = new javax.swing.JButton();
        bLogin = new javax.swing.JButton();
        bCFuncionario = new javax.swing.JButton();
        bCFUsuarios = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLabelIMGLogoEscola = new javax.swing.JLabel();
        jLNomeRusuarioMODIFICAR = new javax.swing.JLabel();
        jLNomeRusuario = new javax.swing.JLabel();
        jLabelIMGUsuarioTPrin = new javax.swing.JLabel();
        jLabelIMGBackgroundLateral = new javax.swing.JLabel();
        jLabelBackground = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        menuPrincipal = new javax.swing.JMenuBar();
        mpCadastro = new javax.swing.JMenu();
        jMFuncionario = new javax.swing.JMenu();
        jMCadastraFunc = new javax.swing.JMenuItem();
        jMListarEditarFun = new javax.swing.JMenuItem();
        jMUsuario = new javax.swing.JMenu();
        jMCadastroUsu = new javax.swing.JMenuItem();
        jMListarEditarUsu = new javax.swing.JMenuItem();
        jMCargo = new javax.swing.JMenu();
        jMCadastrarCargo = new javax.swing.JMenuItem();
        jMeListarEditarCargo = new javax.swing.JMenuItem();
        jMArea = new javax.swing.JMenu();
        jMCadastrarArea = new javax.swing.JMenuItem();
        jMListarEditarArea = new javax.swing.JMenuItem();
        mpHorasExtras = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        mpAjuda = new javax.swing.JMenu();
        mSiteEVL = new javax.swing.JMenuItem();
        mVersao = new javax.swing.JMenuItem();
        mpSair = new javax.swing.JMenu();

        jMenuItem5.setText("jMenuItem5");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                JanelaUsando(evt);
            }
        });
        getContentPane().setLayout(null);

        bLancarHoras.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/horas30x30.png"))); // NOI18N
        bLancarHoras.setText("L. Horas");
        bLancarHoras.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        bLancarHoras.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bLancarHorasActionPerformed(evt);
            }
        });
        getContentPane().add(bLancarHoras);
        bLancarHoras.setBounds(30, 220, 140, 40);

        bRelatorio.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/relatorio30x30.png"))); // NOI18N
        bRelatorio.setText("Relatório");
        bRelatorio.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        bRelatorio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bRelatorioActionPerformed(evt);
            }
        });
        getContentPane().add(bRelatorio);
        bRelatorio.setBounds(30, 270, 140, 40);

        bSair.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/sair30x30.png"))); // NOI18N
        bSair.setText("Sair");
        bSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bSairActionPerformed(evt);
            }
        });
        getContentPane().add(bSair);
        bSair.setBounds(30, 470, 140, 40);

        bLogin.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/usuario30x30.png"))); // NOI18N
        bLogin.setText("Login");
        bLogin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bLoginActionPerformed(evt);
            }
        });
        getContentPane().add(bLogin);
        bLogin.setBounds(30, 420, 140, 40);

        bCFuncionario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/addFUNCIONARIO28x28.png"))); // NOI18N
        bCFuncionario.setText("C. Funcionário");
        bCFuncionario.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        bCFuncionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bCFuncionarioActionPerformed(evt);
            }
        });
        getContentPane().add(bCFuncionario);
        bCFuncionario.setBounds(30, 320, 140, 40);

        bCFUsuarios.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/adicionarusuario28x28.png"))); // NOI18N
        bCFUsuarios.setText("C. Usuários");
        bCFUsuarios.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        bCFUsuarios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bCFUsuariosActionPerformed(evt);
            }
        });
        getContentPane().add(bCFUsuarios);
        bCFUsuarios.setBounds(30, 370, 140, 40);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/logo450px.jpg"))); // NOI18N
        getContentPane().add(jLabel1);
        jLabel1.setBounds(460, 260, 450, 90);

        jLabelIMGLogoEscola.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/logoescola.png"))); // NOI18N
        jLabelIMGLogoEscola.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabelIMGLogoEscolaMouseClicked(evt);
            }
        });
        getContentPane().add(jLabelIMGLogoEscola);
        jLabelIMGLogoEscola.setBounds(24, 20, 140, 120);

        jLNomeRusuarioMODIFICAR.setFont(new java.awt.Font("Century Gothic", 1, 14)); // NOI18N
        jLNomeRusuarioMODIFICAR.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jLNomeRusuarioMODIFICAR.setText("Root");
        getContentPane().add(jLNomeRusuarioMODIFICAR);
        jLNomeRusuarioMODIFICAR.setBounds(90, 160, 80, 20);

        jLNomeRusuario.setFont(new java.awt.Font("Century Gothic", 2, 14)); // NOI18N
        jLNomeRusuario.setForeground(new java.awt.Color(102, 102, 102));
        jLNomeRusuario.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jLNomeRusuario.setText("Usuário:");
        getContentPane().add(jLNomeRusuario);
        jLNomeRusuario.setBounds(30, 160, 60, 20);

        jLabelIMGUsuarioTPrin.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/usuario.png"))); // NOI18N
        getContentPane().add(jLabelIMGUsuarioTPrin);
        jLabelIMGUsuarioTPrin.setBounds(20, 150, 160, 40);

        jLabelIMGBackgroundLateral.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jLabelIMGBackgroundLateral.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/abamenu.jpg"))); // NOI18N
        jLabelIMGBackgroundLateral.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        getContentPane().add(jLabelIMGBackgroundLateral);
        jLabelIMGBackgroundLateral.setBounds(0, -20, 200, 890);

        jLabelBackground.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/backgroud.jpg"))); // NOI18N
        jLabelBackground.setText("                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -                                                                                                                                                                                                                                                                                                                   ");
        getContentPane().add(jLabelBackground);
        jLabelBackground.setBounds(0, -20, 1500, 900);
        jLabelBackground.getAccessibleContext().setAccessibleDescription("");

        getContentPane().add(jLabel2);
        jLabel2.setBounds(440, 10, 180, 40);

        mpCadastro.setText("Cadastros");

        jMFuncionario.setText("Funcionário");

        jMCadastraFunc.setText("Cadastrar");
        jMCadastraFunc.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMCadastraFuncActionPerformed(evt);
            }
        });
        jMFuncionario.add(jMCadastraFunc);

        jMListarEditarFun.setText("Listar/Editar");
        jMListarEditarFun.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMListarEditarFunActionPerformed(evt);
            }
        });
        jMFuncionario.add(jMListarEditarFun);

        mpCadastro.add(jMFuncionario);

        jMUsuario.setText("Usuário");

        jMCadastroUsu.setText("Cadastrar");
        jMCadastroUsu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMCadastroUsuActionPerformed(evt);
            }
        });
        jMUsuario.add(jMCadastroUsu);

        jMListarEditarUsu.setText("Listar/Editar");
        jMListarEditarUsu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMListarEditarUsuActionPerformed(evt);
            }
        });
        jMUsuario.add(jMListarEditarUsu);

        mpCadastro.add(jMUsuario);

        jMCargo.setText("Cargo");

        jMCadastrarCargo.setText("Cadastrar");
        jMCadastrarCargo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMCadastrarCargoActionPerformed(evt);
            }
        });
        jMCargo.add(jMCadastrarCargo);

        jMeListarEditarCargo.setText("Listar/Editar");
        jMeListarEditarCargo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMeListarEditarCargoActionPerformed(evt);
            }
        });
        jMCargo.add(jMeListarEditarCargo);

        mpCadastro.add(jMCargo);

        jMArea.setText("Área");

        jMCadastrarArea.setText("Cadastrar");
        jMCadastrarArea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMCadastrarAreaActionPerformed(evt);
            }
        });
        jMArea.add(jMCadastrarArea);

        jMListarEditarArea.setText("Listar/Editar");
        jMListarEditarArea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMListarEditarAreaActionPerformed(evt);
            }
        });
        jMArea.add(jMListarEditarArea);

        mpCadastro.add(jMArea);

        menuPrincipal.add(mpCadastro);

        mpHorasExtras.setText("Horas Extras");

        jMenuItem1.setText("Lançar Horas");
        mpHorasExtras.add(jMenuItem1);

        jMenuItem2.setText("Relatório");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        mpHorasExtras.add(jMenuItem2);

        menuPrincipal.add(mpHorasExtras);

        mpAjuda.setText("Ajuda");

        mSiteEVL.setText("Site EVL");
        mSiteEVL.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mSiteEVLActionPerformed(evt);
            }
        });
        mpAjuda.add(mSiteEVL);

        mVersao.setText("Sobre");
        mpAjuda.add(mVersao);

        menuPrincipal.add(mpAjuda);

        mpSair.setText("Sair");
        mpSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mpSairActionPerformed(evt);
            }
        });
        menuPrincipal.add(mpSair);

        setJMenuBar(menuPrincipal);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void bLancarHorasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bLancarHorasActionPerformed
        // TODO add your handling code here:
        if (!RegistrarHoras.isVisible()) {
            RegistrarHoras.setVisible(true);
        }
    }//GEN-LAST:event_bLancarHorasActionPerformed

    private void bSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bSairActionPerformed
       
    }//GEN-LAST:event_bSairActionPerformed

    private void mpSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mpSairActionPerformed
      
    }//GEN-LAST:event_mpSairActionPerformed

    private void mSiteEVLActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mSiteEVLActionPerformed
        // TODO add your handling code here:
        Desktop d = Desktop.getDesktop();
        try {
            d.browse(new URI("http://www.evl.com.br"));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }//GEN-LAST:event_mSiteEVLActionPerformed

    private void jLabelIMGLogoEscolaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabelIMGLogoEscolaMouseClicked
        //         
    }//GEN-LAST:event_jLabelIMGLogoEscolaMouseClicked

    private void bLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bLoginActionPerformed
        // TODO add your handling code here:
        if (!Login.isVisible()) {
            Login.setVisible(true);
        }
    }//GEN-LAST:event_bLoginActionPerformed

    private void jMCadastraFuncActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMCadastraFuncActionPerformed
        if (!CadastroFuncionario.isVisible()) {
            CadastroFuncionario.setVisible(true);
        }
    }//GEN-LAST:event_jMCadastraFuncActionPerformed

    private void jMCadastroUsuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMCadastroUsuActionPerformed
        if (!CadastroUsuario.isVisible()) {
            CadastroUsuario.setVisible(true);
        }
    }//GEN-LAST:event_jMCadastroUsuActionPerformed

    private void jMCadastrarCargoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMCadastrarCargoActionPerformed
        if (!CadastroCargo.isVisible()) {
            CadastroCargo.setVisible(true);
        }
    }//GEN-LAST:event_jMCadastrarCargoActionPerformed

    private void bRelatorioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bRelatorioActionPerformed
        if (!Relatorio.isVisible()) {
            Relatorio.setVisible(true);
        }
    }//GEN-LAST:event_bRelatorioActionPerformed

    private void jMListarEditarFunActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMListarEditarFunActionPerformed
        if (!EditarFunc.isVisible()) {
            EditarFunc.setVisible(true);
        }
    }//GEN-LAST:event_jMListarEditarFunActionPerformed

    private void jMListarEditarUsuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMListarEditarUsuActionPerformed
        if (!EditarUsuario.isVisible()) {
            EditarUsuario.setVisible(true);
        }
    }//GEN-LAST:event_jMListarEditarUsuActionPerformed

    private void jMeListarEditarCargoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMeListarEditarCargoActionPerformed
        if (!EditarCargo.isVisible()) {
            EditarCargo.setVisible(true);
        }
    }//GEN-LAST:event_jMeListarEditarCargoActionPerformed

    private void jMCadastrarAreaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMCadastrarAreaActionPerformed
        if (!CadastroArea.isVisible()) {
            CadastroArea.setVisible(true);
        }
    }//GEN-LAST:event_jMCadastrarAreaActionPerformed

    private void jMListarEditarAreaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMListarEditarAreaActionPerformed
        if (!EditarArea.isVisible()) {
            EditarArea.setVisible(true);
        }
    }//GEN-LAST:event_jMListarEditarAreaActionPerformed

    private void bCFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bCFuncionarioActionPerformed
        if (!CadastroFuncionario.isVisible()) {
            CadastroFuncionario.setVisible(true);
        }
    }//GEN-LAST:event_bCFuncionarioActionPerformed

    private void bCFUsuariosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bCFUsuariosActionPerformed
        if (!CadastroUsuario.isVisible()) {
            CadastroUsuario.setVisible(true);
        }
    }//GEN-LAST:event_bCFUsuariosActionPerformed

    private void JanelaUsando(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_JanelaUsando
    }//GEN-LAST:event_JanelaUsando

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(JanelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(JanelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(JanelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(JanelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new JanelaPrincipal().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bCFUsuarios;
    private javax.swing.JButton bCFuncionario;
    private javax.swing.JButton bLancarHoras;
    private javax.swing.JButton bLogin;
    private javax.swing.JButton bRelatorio;
    private javax.swing.JButton bSair;
    private javax.swing.JLabel jLNomeRusuario;
    private javax.swing.JLabel jLNomeRusuarioMODIFICAR;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabelBackground;
    private javax.swing.JLabel jLabelIMGBackgroundLateral;
    private javax.swing.JLabel jLabelIMGLogoEscola;
    private javax.swing.JLabel jLabelIMGUsuarioTPrin;
    private javax.swing.JMenu jMArea;
    private javax.swing.JMenuItem jMCadastraFunc;
    private javax.swing.JMenuItem jMCadastrarArea;
    private javax.swing.JMenuItem jMCadastrarCargo;
    private javax.swing.JMenuItem jMCadastroUsu;
    private javax.swing.JMenu jMCargo;
    private javax.swing.JMenu jMFuncionario;
    private javax.swing.JMenuItem jMListarEditarArea;
    private javax.swing.JMenuItem jMListarEditarFun;
    private javax.swing.JMenuItem jMListarEditarUsu;
    private javax.swing.JMenu jMUsuario;
    private javax.swing.JMenuItem jMeListarEditarCargo;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JMenuItem mSiteEVL;
    private javax.swing.JMenuItem mVersao;
    private javax.swing.JMenuBar menuPrincipal;
    private javax.swing.JMenu mpAjuda;
    private javax.swing.JMenu mpCadastro;
    private javax.swing.JMenu mpHorasExtras;
    private javax.swing.JMenu mpSair;
    // End of variables declaration//GEN-END:variables

    private void setsize(int i, int i0) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}
